import service from '@/utils/request'

// @Tags ProjectPlan
// @Summary 创建项目计划日期
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProjectPlan true "创建项目计划日期"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /projectPlan/createProjectPlan [post]
export const createProjectPlan = (data) => {
  return service({
    url: '/projectPlan/createProjectPlan',
    method: 'post',
    data
  })
}

// @Tags ProjectPlan
// @Summary 删除项目计划日期
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProjectPlan true "删除项目计划日期"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /projectPlan/deleteProjectPlan [delete]
export const deleteProjectPlan = (params) => {
  return service({
    url: '/projectPlan/deleteProjectPlan',
    method: 'delete',
    params
  })
}

// @Tags ProjectPlan
// @Summary 批量删除项目计划日期
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除项目计划日期"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /projectPlan/deleteProjectPlan [delete]
export const deleteProjectPlanByIds = (params) => {
  return service({
    url: '/projectPlan/deleteProjectPlanByIds',
    method: 'delete',
    params
  })
}

// @Tags ProjectPlan
// @Summary 更新项目计划日期
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProjectPlan true "更新项目计划日期"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /projectPlan/updateProjectPlan [put]
export const updateProjectPlan = (data) => {
  return service({
    url: '/projectPlan/updateProjectPlan',
    method: 'put',
    data
  })
}

// @Tags ProjectPlan
// @Summary 用id查询项目计划日期
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ProjectPlan true "用id查询项目计划日期"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /projectPlan/findProjectPlan [get]
export const findProjectPlan = (params) => {
  return service({
    url: '/projectPlan/findProjectPlan',
    method: 'get',
    params
  })
}

// @Tags ProjectPlan
// @Summary 分页获取项目计划日期列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取项目计划日期列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /projectPlan/getProjectPlanList [get]
export const getProjectPlanList = (params) => {
  return service({
    url: '/projectPlan/getProjectPlanList',
    method: 'get',
    params
  })
}
